package models

import (
	"gorm.io/gorm"
)

type Category struct {
	gorm.Model
	ID   int64  `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`
	Icon string `gorm:"column:icon;type:varchar(200)" json:"icon"`
	Name string `gorm:"column:name;type:varchar(200)" json:"name"`
}

// TableName sets the insert table name for this struct type
func (c *Category) TableName() string {
	return "category"
}
